#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>

int main()
{
    umask(0000);
    int fda = open("loga.txt", O_WRONLY| O_CREAT | O_APPEND, 0666);
    printf("fda -> %d\n", fda);
    int fdb = open("logb.txt", O_WRONLY| O_CREAT | O_APPEND, 0666);
    printf("fdb -> %d\n", fdb);
    int fdc = open("logc.txt", O_WRONLY| O_CREAT | O_APPEND, 0666);
    printf("fdc -> %d\n", fdc);
    int fdd = open("logd.txt", O_WRONLY| O_CREAT | O_APPEND, 0666);
    printf("fdd -> %d\n", fdd);
    return 0;
}
